xentrace: don't try to close null libxc handle in disable_tbufs
authorMatthew Daley <mattjd@gmail.com>
Wed, 30 Oct 2013 07:52:04 +0000 (20:52 +1300)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 31 Oct 2013 21:55:53 +0000 (21:55 +0000)
commit7343db9a771e0026c1f6acc78521025c589ee7d3
treedb7599d38dbc1d6665964d1952c6457445114b31
parent1924ed33aca6b162416a399902e7f687dec14038
xentrace: don't try to close null libxc handle in disable_tbufs

While at it, simplify the function.

Coverity-ID: 1055316
Signed-off-by: Matthew Daley <mattjd@gmail.com>
Reviewed-by: George Dunlap <george.dunlap@eu.citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/xentrace/xentrace.c